/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: Phone
 * @author: xiayuanxing
 * @description: TODO
 * @date: 2021/12/21 16:27
 * @version: 1.0
 */
public abstract class Phone {

    //组合品牌
    private Brand brand;


    //构造器
    public Phone(Brand brand) {
        super();
        this.brand = brand;
    }

    protected void open(){
        this.brand.open();
    }

    protected void close(){
        brand.close();
    }

    protected void call(){
        brand.call();
    }
}
